package com.sgb.kjwl.model.entity.transport;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

/**
 * @Author : 熊丽
 * @date :2021/4/13 0013$ 16:05$
 * @Description ://货车承运实体$
 */
public class TrucksCarrier {
    public static final String PERSONAL_CODE = "3";
    public static final String COMPANY_CODE = "1";
    public static final String TEAM_CODE = "2";
    //("1：企业 / 2：团队 / 3:个人")
    private String terminal;
    //("承运no")
    private String carrierNo;
    //("信息状态 1正常 2失效")
    private Integer messageStatus;
    //("车主姓名")
    private String name;
    //("车牌号")
    private String carNumber;
    //("市")
    private String cityName;
    //("区")
    private String districtName;
    //("市")
    private String destCityName;
    //("区")
    private String destDistrictName;
    //("车主电话")
    private String telphone;
    //("运费单价")
    private String freight;
    //("装货开始时间")
    private String shipmentTime;
    //("装货结束时间")
    private String shipmentEndTime;
    //("车型")
    private String carTypeName;
    //("车长")
    private String carLenName;
    //("备注")
    private String note;
    private String carNo;
    //("1：元/趟，2：元/吨，3：元/方")
    private String freightUnit;
    //("联系人")
    private String contrcts;
    //("联系人电话")
    private String contrctsNumber;
    //("公里数")
    private String kilometre;
    //("头像对应的名字")
    private String roleName;
    //("头像")
    private String img;
    /**
     * 企业编号
     */
    private String companyNo;
    /**
     * 企业名称
     */
    private String companyName;
    /**
     * 团队编号
     */
    private String teamNo;
    /**
     * 团队名称
     */
    private String teamName;
    /**
     * 用户编号
     */
    private String userNo;

    private int discuss;

    public void setFreightUnit(String freightUnit) {
        this.freightUnit = freightUnit;
    }

    public String getFreightUnit() {
        if (TextUtils.isEmpty(freightUnit))
            return "";
        //1：元/趟，2：元/吨，3：元/方
        if (freightUnit.equals("1"))
            return "元/趟";
        if (freightUnit.equals("2"))
            return "元/吨";
        if (freightUnit.equals("3"))
            return "元/方";
        return "";
    }

    public String getCarrierNo() {
        return carrierNo;
    }

    public void setCarrierNo(String carrierNo) {
        this.carrierNo = carrierNo;
    }

    public Integer getMessageStatus() {
        return messageStatus;
    }

    public void setMessageStatus(Integer messageStatus) {
        this.messageStatus = messageStatus;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getDestCityName() {
        return destCityName;
    }

    public void setDestCityName(String destCityName) {
        this.destCityName = destCityName;
    }

    public String getDestDistrictName() {
        return destDistrictName;
    }

    public void setDestDistrictName(String destDistrictName) {
        this.destDistrictName = destDistrictName;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCarLenName() {
        return carLenName;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getShipmentTime() {
        return shipmentTime;
    }

    public void setShipmentTime(String shipmentTime) {
        this.shipmentTime = shipmentTime;
    }

    public String getShipmentEndTime() {
        return shipmentEndTime;
    }

    public void setShipmentEndTime(String shipmentEndTime) {
        this.shipmentEndTime = shipmentEndTime;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }
    public String getTerminal() {
        return TextUtils.isEmpty(terminal) ? "1" : terminal;
    }

    public void setTerminal(String terminal) {
        this.terminal = terminal;
    }

    public String getContrcts() {
        return contrcts;
    }

    public void setContrcts(String contrcts) {
        this.contrcts = contrcts;
    }

    public String getContrctsNumber() {
        return contrctsNumber;
    }

    public void setContrctsNumber(String contrctsNumber) {
        this.contrctsNumber = contrctsNumber;
    }

    public String getKilometre() {
        return kilometre;
    }

    public void setKilometre(String kilometre) {
        this.kilometre = kilometre;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
    public String getUserNo() {
        if (userNo == null)
            return "";
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }
    public String getCompanyNo() {
        if (companyNo == null)
            return "";
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }
    public String getTeamNo() {
        if (teamNo == null)
            return "";
        return teamNo;
    }

    public void setTeamNo(String teamNo) {
        this.teamNo = teamNo;
    }

    public int getDiscuss() {
        return discuss;
    }

    public void setDiscuss(int discuss) {
        this.discuss = discuss;
    }
}
